#include<bits/stdc++.h>
using namespace std;

main() {
	int n;
	cin>>n;
	//cout<<ceil(n/4.0);
	cout<<(n+3)/4;


}
